struct kobject *kobj;

static ssize_t reset_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{

	return 0;
}

static ssize_t reset_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t cnt)
{

	unsigned int read_value;

	sscanf(buf, "%d",&read_value); //address

	if(read_value==1)
		write16(0x0, 0x01);


	return cnt;

}


static struct kobj_attribute reset_attribute =
	__ATTR(reset, 0666, reset_show, reset_store);

static struct attribute *attrs[] = {
	&reset_attribute.attr,
	NULL,   /* need to NULL terminate the list of attributes */
};

static struct attribute_group attr_group = {
       .attrs = attrs,
};

/*

const struct kobj_attribute kobj_attr =
	__ATTR(attr1, 0666, attr1_show, attr1_store);
*/
int sysfs_register(void)
{
	int ret;


	kobj = kobject_create_and_add("fpga_dev", NULL);
	

	ret = sysfs_create_group(kobj, &attr_group);



return 0;
}


int sysfs_unregister(void)
{
	//sysfs_remove_file(kobj, &kobj_attr.attr);
	kobject_put(kobj);
	return 0;
}

